//
//  YKXMPPTool.h
//  WeChat
//
//  Created by 吴高烽 on 16/5/22.
//  Copyright © 2016年 吴高烽. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "XMPPFramework.h"

typedef enum {
    XMPPResultTyepLoginSuccess,//登录成功
    XMPPResultTyepLoginFailure, //登录失败
    XMPPResultTyepRegisterFailure, //注册失败
    XMPPResultTyepRegisterSuccess //注册成功
}XMPPResultTyep;
typedef void (^XMPPResultBlock)(XMPPResultTyep);
@interface YKXMPPTool : NSObject
//XMPPvCardTempModule *_vCard ; // 电子名片模块
//XMPPvCardCoreDataStorage *_vCardStorage ; // 电子名片数据存储

@property (nonatomic ,strong,readonly) XMPPvCardTempModule *vCard;
@property (nonatomic ,strong,readonly) XMPPvCardCoreDataStorage *vCardStorage;
@property (nonatomic ,strong,readonly) XMPPRoster *roster;// 花名册模块
@property (nonatomic ,strong,readonly) XMPPRosterCoreDataStorage *rosterStorage;//花名册的数据存储
@property (nonatomic ,strong,readonly)  XMPPvCardAvatarModule *avatar ; //电子名片的头像
@property (nonatomic ,strong,readonly)  XMPPStream *xmppStream;//与服务器交互的核心类
/** 消息模块 */
@property (nonatomic ,strong,readonly)  XMPPMessageArchiving *msgArchiving;
@property (nonatomic ,strong,readonly)  XMPPMessageArchivingCoreDataStorage *msgArchStorge;


singleton_interface(YKXMPPTool)
// xmpp用户登录
-(void)xmppLogin:(XMPPResultBlock)resultBlock;
// 用户注销
-(void)xmppLogout;
// 用户注册
-(void)xmppRegister:(XMPPResultBlock)resultBlock;
@end
